Add ensure functions (see long message):

- ensureNoPendingChanges()
- ensureAppsSvnPathExists()