Undeprecate and update the elgg_load/register_library functions

See https://github.com/Elgg/Elgg/pull/7443#issuecomment-62827720