refactor duplicate folding code into one method
Update 127.0.0.1 → localhost in documentation

TextMate listens on IPv6 so we must use ‘localhost’ with SSH so that it correctly resolves to ::1 (instead of an IPv4 address).
Allow using ‘quit’ to terminate an (r)mate session

This is useful when testing socket connections as it seems nicer than simply killing the connection.
When restoring open tabs, skip non-existing files