Changed WebResult command structure into Command classes so that
its less code in each function and more object oriented.