Adds functionality to remove a local template.

This enables the UI to remove existing templates from the file system - something that's been requested for some time now.
To forget app and also delete the files couldn't you do the forget app method above, and then /api/local/delete ? It seems like we'd want the UI to ask whether to delete the files anyway (that's what Eclipse does if you delete a project, has a "delete the files" checkbox)