Sidebar focus fixes

- Hide sidebar when focusing the input bar
- De-focus input bar when opening sidebar, so that the keyboard disappears
- requires angular update, in beta8 ngFocus is broken
- also requires moving `hideSidebar` to `$rootScope` :(