Use duplicates of core functions, with notes about when to delete them and just…

Authored by Isarra on May 19 2017, 8:41 PM.

Description

Use duplicates of core functions, with notes about when to delete them and just use core

Also move getPortlet to the bottom before them, since it's NEXT. (Also fix
that error with that hook using renderafter instead of getafterportlet.)

Change-Id: I6efe32634557046cc904f801461c097656b90681