client sends a payload instead of url for locale
correctly check for cookie expiry
set content-type to application/json when returning errors
environment factory takes a now optional config
disable static serving when not in test or dev modes
unit tests