Add authentication checks, for restricted apis, fix cached/uncached issues, css tweaks