ADDED: Added reset/1 option to ap/4.
ADDED: Generalized parts of the SemURI script that are generic CKAN AP-based processes.