Added support for JsArray
Implemented apply in JessRule trait

Minor refactoring
Added tests
Minor test refactoring