Added support to user/pass authentication. Refactoring
Added config.js to gitignore