Set working directory for most ⌘R commands (TextMate.executor)

For projects, the working directory will now be set to the project directory, if there is no project then the file’s directory is used, and if running an untitled document, the user’s home directory is used as a last fallback.

Solves textmate/textmate#994 and textmate/textmate#1010.