iks: added get_summary command

+ summaric values calculated in iks-server
+ checking "/h" units and special=hoursum
+ error if param is not summaric
+ returning new units
+ common get_history/get_summary code moved to cmd_common