FLUID-5200: removed the magic number
FLUID-5201: Added an isActivePanel function

The isActivePanel replaces the isPanel function testing the actual component instead of just some set of it's options, which may not include all of the configuration.
FLUID-5201: Updated the isPanel function

Updated the isPanel function to handle more configuration options, including those supplied through gradeNames. However, this still may miss some configuration supplied and should only be used for cases where isActivePanel cannot be used.
FLUID-5201: Removed another call to fluid.defaults

Removed another call to fluid.defaults by making a utility function to try to prefetch a components options.
FLUID-5201: cleanup.
Merge branch 'FLUID-5200' into FLUID-5205

Conflicts:
	src/framework/preferences/js/Panels.js
FLUID-5205: Updating selectors before rendering.