added code that should have made tests pass. compartmentalized some test logic
set environment database_url in npm scripts until we can set it more reliably under test.
Merge pull request #31 from twinlabs/29-tests-failing-on-master

#29: tests failing on master