Refactored so that the application applies URL rules with pluggable views. This way we have a nice separation of concern. Also created init logic to load and set config and logging properties