updated GlassController to use Sitecore.Context.Database instead of RenderingContext. This removes the problem of controllers that don't have a context throwing an exception.