fix regression where unsaved map changes linger in cache
refactor to api/error.ls
return http 401 (unauthorized) if signin required
refactor
refactor
refactor
refactor backbone and view event handling
tidy
refactor delete map events