Ajax templates

and other improvements
more js tests
updated css for app menus