started refactoring. Registration does not work yet - but login does! Going with knockout.js for data binding.