Move security constraints into the Resource layer.
Removing dead JS code.
Bump version of JS rules.