Added a mock implementation for API Factory. It can be used in web
application development to emulate API backend.