Refactored LocalDataController

Wrapped into a function so it can be refreshed. I.E. when a user has
registered
Bug fix

Fixed an issue where ishare was returning more than one URL. Now finds
the democracy.bathnes URL and uses that.

As these URLs came after the phone number, changed the code to find a
phone number to use a regular expression.