added function for form-specific URLs
added class for forms API and examples