Improve phpDoc and core-ify registration of scripts/styles