added Register functionality for the application on top of OWIN. Register does not work for now but working on it.