Refactored most main.coffee code into a KeyanoView