Add base resource configuration helper; closes gh-5.
Have travis install requirements to build requirements for gevent.
Add DEBUG configuration option.
Various bug fixes with latest change.