Added support to add API resources with a wrapper handler function.
Merge branch 'wrapper_support'