Misc Fixes. Notable change: use SIGTERM not SIGKILL when stopping btsync.  Failure to do this results in btsync not saving settings.