View Function in Blue Print Refactored

This re-writes the view_function decorator in blueprint.py so that it
can now create both map and reduce functions in couch. As well, the
function has been simplified for readability, and a bug has been removed
that hardcoded part of the view path rather than assigning it
dynamically.

As well, changes have been made to databases.py in the toolbox directory
so that it can handle the input from the blueprint file. This file has
also been simplified for readability.