Code style of registration view; Closes #3745
Standardise libraries on `defined('JPATH_PLATFORM')`;
Closes #3729