Refactored into module that can be required independently

Added functional tests
Added arguments for resolution to the base script.
Cleaned up package.json
Renamed binary
Binaries now installed correctly locally and remotely
Updated README

Fixes pocketjoso/penthouse#1
Also touching on discussions on pocketjoso/penthouse#5 and pocketjoso/penthouse#2