Added file persistence layer, as alternative to postgres persistence layer.
Improve unit tests, rename chain to model.
Delete generated docs _build directory.
Refactor select into many smaller functions in utils.