Consolidate commands

Lower number of command files by consolidating similar commands using array.
Fix webserver since config object cannot be referenced in previous definition.