added tests for M.Application
added M.LayoutManager and M.Layout
isMView and isMLayout are public now
added first tests for M.Layout & M.LayoutManager
added delegate events for global events
Merge branch 'master' into ui

Conflicts:
	framework/modules/core/layout_manager.js
	framework/test/index.html