Code refactor.

Change camelcase method names to underscored names.
Fix a bug in controller_by_action hash initializer. Now only protocol
actions are added.