Implement Geolocation location and heading events.

See the JIRA ticket  for acceptance tests. This pull request implements
the Geolocation modules and includes support for the "location" and "heading" events.