added gitignore, refactored some of relay.js, added package.json, removed packaged dependancies