Inputs focus and clean up 

Ensure elements get focus on click and mousedown.

Clean up a bunch of other little things.