Feature/migrations

Refactor application structure and migrations. Add basic packaging scripts and installer/starter for the installed code.