Yea, this could definitely be better. Auto-registration would go a long way. Also, http://trac.elgg.org/ticket/4460 for pre-built, versioned assets.