Persistent storage backend support, sqlite backend.
Update .gitignore.
Historical state queries support in the HTTP API.