I love the idea of the code, but there is so much duplication!

I really like the idea of Mahana, but there was so much code duplication throughout. In the spirit of DRY, I refactored the library to eliminate most of the duplicated code. I also added doc blocks to the library and the model.

In this PR, the initial require_once() for the config file has been tweaked to work with HMVC as well as a standard CodeIgniter install.

Finally, I fixed up the model so it works with dbprefix set.