implemented authentication and registration stuff and added tests
Merge remote-tracking branch 'origin/dev' into dev