Made the WM_STATE handling code into its own function for readability and expandability.
Added focusing of urgent clients. I am unsure as to whether howm needs to reset the urgent state of the window.
Merge pull request #17 from HarveyHunt/feature/urgent

Implementation of urgent hints and a new WM_STATE handling function