Add a location serializer.

Implementing apps are going to need this.