fixed logout
refactored auth, added api.js

* added api.repos() method

master