Added stop scripts. Modified start scripts to save pid files.