Rules Framework Changes

Rules are now purely informational.
- moved 'actioning' code into pure Java.
- versioning support added
- namespaces are now JSON in/out
- removed references to pure java objects from JS.