Reimplementation of SQL-backed Blueprints API implementation.

So far only H2 is tested (by the virtue of the passing
Blueprints testsuite).