Move ssw wrapper code up one level, rename _ssw to _lib