hookup login to app
more login fixes
handle clicking outside of login
add selectedTab model property
add counts to tab titles