integrating flask login
Implementing basic client authentication
Added missed api files in previous commit