Fixed problem with finding the correct url for a subproject. Sadly this still won't work with notifications for subprojects which will be considerably more easy once we have the package_id stored with the object.
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.