Smarter hint urls

More like vimperator hints now, next iteration will change the color of the hints that are possible.
I wasn't sure where I should put the utility function so I just added it to termite.cc.
Need some feedback on how you guys want this implemented.