elgg_register_lib

I had to urgently move to elgg 3.  because  older version of elgg are not working with latest ubuntu.(rewrite rules fails) I have to migrate tones of code now within a day.

But there s ino proper migration guide.  For now someone can suggest me .

How to migrate the code which uses  elgg_register_lib.?