Fix uninstall hook, location search, new items

- Make sure all variables are uninstalled with the module
- Use the form API for formatting of the location search field
- Maps were breaking when a new item is added to a field with unlimited
  entries.