Add more functionality for the default agent

* tweaks a few things to make the base-agent more modular
* adds endpoint.lua from rackspace-monitoring-agent
* changes gyp slightly to push down the pkg_name into lua-space
Could this maybe be integrated with the new state machine in `Connection` class?