/// <summary>
        /// Creates the kernel that will manage your application.
        /// </summary>
        /// <returns>The created kernel.</returns>
        private static IKernel CreateKernel()
        {
			var kernel = new StandardKernel();
            kernel.Load(new PersistanceModule());
            kernel.Bind<DbContext>().To<BlogContext>().InRequestScope();
			kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => new Bootstrapper().Kernel);
			kernel.Bind<IHttpModule>().To<HttpApplicationInitializationHttpModule>();
			kernel.Bind<OpenIdMembershipService>().ToSelf().InTransientScope();
			kernel.BindFilter<MyAuthorizeFilter>(FilterScope.Action, 0).WhenActionMethodHas<AuthorAuthorizeAttribute>();
			kernel.BindFilter<MyAuthorizeFilter>(FilterScope.Controller, 0).WhenControllerHas<AuthorAuthorizeAttribute>();
            
            RegisterServices(kernel);
            return kernel;
        }