Implement PostgreSQL-backed filesystem

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>