added function previewingDraft

plugins might want to use this for doing something special.
added js doFilter function for filtering pages
fixes tree grid and filter
remove debugging fix errros
fix codemirror white scrollfill
Merge branch 'master' into feature_570_page_drafts
Merge branch 'feature_570_page_drafts' into master_candidate

Conflicts:
	admin/components.php