Fix rules in single machine view.

This completes the use of popups over select boxes. Keep in mind
that rule.action has been renamed to rule.autoAction because
Handlebars reserves the 'action' word for its own use and the
rules template does not render correctly.