Refactored, and added sailsrc stub.
Update sailsrc.