executionSaving

As a user I want to be able to execute a Workflow or single APICalls and the execution should be saved to Mongo

specs:

  it should save an execution to Mongo when an APICall has been executed (and relate it to an workflow)
  it should load the execution when an id has been provided
  it should load all the executions for one APICall
  it should load all the executions for one Workflow
<a href='#crh-start'></a><a href='#crh-data-%7B%22processed%22%3A%20%5B%22https%3A//github.com/EnoF/con-rest/pull/11%23issuecomment-63071943%22%2C%20%22https%3A//github.com/EnoF/con-rest/pull/11%23discussion_r20495863%22%5D%2C%20%22comments%22%3A%20%7B%22General%20Comment%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/EnoF/con-rest/pull/11%23issuecomment-63071943%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Sounds%20good%21%22%2C%20%22created_at%22%3A%20%222014-11-14T14%3A33%3A59Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/1508400%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/EnoF%22%7D%7D%5D%2C%20%22title%22%3A%20%22General%20Comment%22%7D%2C%20%22Pull%202dd31ab8172d13f11671d33ad51e747656dce15f%20test/unit/server/executionSpecs.js%2073%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/EnoF/con-rest/pull/11%23discussion_r20495863%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Saving%20is%20not%20yet%20implemented%2C%20right%3F%22%2C%20%22created_at%22%3A%20%222014-11-18T10%3A06%3A04Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/1508400%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/EnoF%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20test/unit/server/executionSpecs.js%3AL1-136%22%7D%7D%7D'></a>
<a href='https://www.codereviewhub.com/'><img src='http://www.codereviewhub.com/site/github-bar.png' height=40></a>
- [ ] <a href='#crh-comment-General Comment'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/EnoF/con-rest/pull/11#issuecomment-63071943'>General Comment</a></b>
- <a href='https://github.com/EnoF'><img border=0 src='https://avatars.githubusercontent.com/u/1508400?v=3' height=16 width=16'></a> Sounds good!
- [ ] <a href='#crh-comment-Pull 2dd31ab8172d13f11671d33ad51e747656dce15f test/unit/server/executionSpecs.js 73'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/EnoF/con-rest/pull/11#discussion_r20495863'>File: test/unit/server/executionSpecs.js:L1-136</a></b>
- <a href='https://github.com/EnoF'><img border=0 src='https://avatars.githubusercontent.com/u/1508400?v=3' height=16 width=16'></a> Saving is not yet implemented, right?


<a href='https://www.codereviewhub.com/EnoF/con-rest/pull/11?mark_as_completed=1'><img src='http://www.codereviewhub.com/site/github-mark-as-completed.png' height=26></a>&nbsp;<a href='https://www.codereviewhub.com/EnoF/con-rest/pull/11?approve=1'><img src='http://www.codereviewhub.com/site/github-approve.png' height=26></a>&nbsp;<a href='https://github.com/EnoF/con-rest/pull/11'><img src='http://www.codereviewhub.com/site/github-refresh.png' height=26></a>
<a href='#crh-end'></a>
no, i need to rebase the execution part (different branch) first :)