Added front-end for login. Separated reg/dereg API

Updated main index page html structure.