AMBARI-4308. Add optional parameter options and minor fixes to custom action support