Clean interface map.js <-> searchbar.js

Pull out serialize/deserialize and update to new interface
Move part of searchbar markup into template
Misc refactoring
Enable location searching from plot detail