Add support for renaming TypeScript modules

TypeScript's syntax for requiring modules is either:

  import <name> = require('<path>');

or

  var <name> = require('<path>');

For both cases we can use the same matching pattern
as JavaScript