Moved most of the script code into its own module.

Also: renamed script.
Several things:

* Fixed typo in py2shell target that make was halting on
* Added missing deps to ERL_LIBS
* Fixed project library path to be absolute
* Updated script name
Removed unnecessary change dir.
Added target for running just the Erlang shell.