Save rules as json to file in hopes of loading it to client.
Changed directory names and structure to better reflect their contents. Added useful targets to ant. YAML rules are now kind of compiled into a preliminary javascript file for the simulator.