functioning registration + login - some bugs, but meh
Merge branch 'trunk'