Initial application main file

Copy-pasted from my Hydra project removing unneeded bits here and there