Resolves issue #4 (API for measurements)

There's an assumption in the serializer for measurements that
observations are nested dictionaries, with values as escaped string
representations of JSON objects.