Add package.json file and organize the file structure a bit.

I've added a package.json file in preparation for registering it to npm. I've also reorganized the file structure a bit.