step1and2

changes to js, view, some libarian functions and cache.
need to figure out how to implement NewHappenings for MArk
refractored all

pre-testing
refractored all

pre-testing
tested and fixed
resolved conflicts
Merge branch 'multi-rtc-support'