Continues build out of authentication module

This is a major work in progress