Restructure the custom action code to make it cleaner and make the BA module handle available to the the custom action.
Reposition the call the the detect custom action.
Add template custom action code.
NOTE: If you are using custom actions this release is not compatible with the old custom action code. Please see the sample in the Examples folder for the new format.