use template::element::exists for checking if an element exists for validation blocks - faster and works in the event you added an element directly via the form api
Fixed the permissioning so that a new project inherits form the package or parent_project. Added the updateing of context_ids for existing packages using a webpage. The SQL upgrade script is still missing.