Initial commit to factoring out mock server
Fix
Merge pull request #18 from andrerod/mock

#527: Factor out mock server to a separate module