Migrated database to Postgres
Changed secrets handling to Figaro.
Fixed various issues.

- Made root redirect to new tree.
- Started unifying position management (to align things on a grid).
- Added save of tree when imported (to keep the pretty positions).