Added support to add API resources with a wrapper handler function.

Wrapped handlers are good to support additional functions on top of sleepy (eg. Gzip compression).