Safety check for map init for flat pages
Remove phantomjs localstorage physical files
Get rid of broken pipe errors during tests (fixes #97)