Jc/webmachine callback api

WIP