Added support for creating new scripts.

The final piece of the puzzle.