remote: updated self tests for new remote functionality
remote: added --timeout option
remote: increased debugging info
remote: cleanup socket file
remote: gracefully handle sigterm