Added proper registration of accounts etc. Not tested yet.

Signed-off-by: MaloW <MaloW@spray.se>