[WIP] cpserver: fixed various lctool bugs after testing
[WIP] cpserver: fixed various lctool bugs after testing

waqasbhatti/astrobase,waqasbhatti/astrobase,lgbouma/astrobase,lgbouma/astrobase,waqasbhatti/astrobase,lgbouma/astrobase