I lie in the corner when you rest
I clean up all your mess
Without me all'd be grey
I'm needed to brighten the way.
You'll hate to have to use me
But yet, your tool, I'll soon be.
For eventually, I'll be at your hand
To preserve the state of your homeland.
What am I? (hint: you "pull my leg" and "use my head")