Added InArray rule

Added the InArray rule, and made it possible for custom rules to be used
on the frontend.