Support for preDispatch and postDispatch methods on resource methods, composer, code cleanup

* Resolves issue 18 with support for preDispatch and postDispatch method execution when one is available on a resource class
* Added composer support for dependency management
* General code/documentation cleanup