Update gitignore

- The previous one was automatically generated and contained a lot of
unnecessary rules.
Add package.json to make this a npm module
Add initial working code