A promise based network layer for mock applications