fix jslinting on core.js
Add user function to extract list of secondary keys of a given type
Add secondary key to gatekeeper forwards, if configured.