Factory for building action and view

Added an app controller class that selects and instantiates the correct action (and view) based on defined paths.