Fix presentation state value in the mock api
Rename API mock module from `api` to `server-api-mock`
Re-write `cookie-utils` module in CoffeeScript for consistency
Move require call to impl section