Fixed #17. Made caching support widget menu. Also fixed #15. All modules inherits the core module.