Partial cleanup advised by rubcop.
Cleanup advised by robocup. Refactored on_ok and process_responses.