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

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