Extracted console related code to https://github.com/archan937/directiverecord-console (TODO: fix two failing tests caused by the database mocking)