Move main controller into .ts file

Also reorganize the model modules into their own directory.