Project bootstrap. Implement command reading and execution, application
state and database connection.