Updated gitignore and package.json.

Added top-level .gitignore.
Added top-level package.json for npm packages.