Improv/search logic

1. I moved the search logic to a server side component.
To some extent I agree with having Java code in JSPs (after all, they are _Java_ Server Pages) but having something like /apps/components/utils.js is just plain wrong (with methods and stuff).

2. Minor interface tweak - add the user name in the top menu bar and added a logout link.
Have a good day.