Well, there should be a way to directly 'talk' to the server from any custom application, without the necessity to go through the terminal. Either by open (binary! - no xml/json) protocol or a standalone api.
..