Normalize the capitalization of action names.
Insignificant refactoring.  preg_replace ==> str_replace.  fetch_row()[0] bug fix.
Documentation change, effectively.
First draft.
Insignificant refactoring.