Refactor registration

to locate the backend communication in a factory.
Merge branch 'master' of github.com:tobiasmuecksch/frontend

Conflicts:
	js/controller/registration.js