Fixes bundle.xml, renames resources dir to templates dir, updates license headers.