Fix autofilling URL based on title

Errors don't display properly, but that's a CKAN bug.
Implement reference period fields