Restructed client program, added locking capability to server
Added switch-locking capability
Added locking feature to web interface