Added application controller and router.
Added application instantiation.