Refactors Application to abstract common elements.
Adds get/set config to view and application.
Merge pull request #6 from phavour/application-refactor

Refactors Application to abstract common elements.