Clean and update build output more intelligently

Fixes #183.
yeah, this should be added to TypeScriptProjects I think - its nicely related to getting the source and exported folders