add .gitignore file to ignore node_modules directory.
also ignore config.js and mocks/ directory for now.
fix line endings for unix / os x
fix to keep a reference to "this" for GET / POST callback functions.