minor fixes
fix up some global corruptions, added refresh flags
remove debug
added disabled flags for collection item exists functions

component_exists($id,$disabled = false)
defaults to return false for disabled components, so you do not need to
check exists and enabled, or use enabled exclusivly
Merge branch 'feature_507_snippets' into master_candidate