Factored out common header and footer
Added some customization to the nav bar.  Plenty more needed
redirect to login if ajax gets 401
added full error handling