Jc/webmachine callback api

Update the WM callback, and add a client API for use with ibrowse