AUI-1654 Custom form validator rules

Previous PR: https://github.com/mairatma/alloy-ui/pull/55
Jira Ticket: https://issues.liferay.com/browse/AUI-1654

* Changed API from using a `customRules` attribute to using a `FormValidator` function. 
* Demo updated
* Test added for new API