added and fixed some tests
added user registration plus related pages
some fixes to JS - better behaviour when server API is not reachable
support for https