protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();


            HttpConnector.CreateInstance(HtmlUtil.GetConfig("serviceUrl"));
            HtmlUtil.Initialize(HtmlUtil.GetConfig("clientID"), HtmlUtil.GetConfig("clientSecret"), HtmlUtil.GetConfig("redirectUrl"));
            FactoryMaster.CreateInstance();

            XmlConfigurator.Configure();
            ILog logger = LogManager.GetLogger("ApplicationStart");

            logger.Info("Started up this program.");
        }