fixed file handler invocation, fixed theme_engine init and theme_engine db operations, moved check for post to base handler