Remove use of promises in mock

PhantomJS does not support promises, so I had to fake them.
Merge pull request #33 from Rise-Vision/chore/eliminate-use-of-promise

Remove use of promises in mock