Added GETSTATE capability to ca_server
Added basic test of ca_server