Move exceptions to their own file.
Add non-flat package handling and error.
Add JDS exists handling for scripts, including docs.

Fix tests to use this.
Bump version.