Separated install function.
Started working on routes.
Completed setup middleware in installer.