Added ORMLite annotations to make MediaDefinition persistent
Made popup menu creation more generic
Added MediaDefinition to editor