added a very simple rest interface to post tasks