Modified TypeScriptFilter to create a temporary file in the temp directory again, but now it will rewrite any references to be relative to the files new location.

Also added an option which will avoid using the --out flag of the TypeScript compiler if set to false (true is default, which provides original behavior).