More tests for js Sessions service, and some refactoring
Added auto-complete on title for adding sessions and refactored main.js