Redesign the module for more OOP Add tests for server_action Change-Id: I054de32ee3ff34988db53fc87b1cb63b8e551ae3