Move html to hbs templates
Object Oriented functionality

This commit moves all the login into an object oriented pattern. Any forks before this commit will have very heavy conflicts when making pull requests. Please update your forks