Renamed files, lib etc... and added support for npm.

Fixes #4