Get tests running

I hope you don't mind, but I took a look at this library again.  The first thing I did was try to get the tests to run, but with **MY** database setup instead of yours. :)

My quest took me on a path of refactoring the database connection stuff into the Connection class, then removal of the $DB references (which were setup up outside of the usual app scope) so the application had a chance to be set up before it is run. 

I added a rake task and instructions on how to get the project up-and-running.  Hope this helps!