Initial support for structured facts

Support structured fact queries using the syntax foo.bar=baz

Unfortunately I had to drop support for unquoted strings containing dots
to get this working.

This also drops support for the v3 API.
Release version 0.3.0