Added logger and moved login
Moved login functionality to separate module from api
Added logger module to standardize logging