Move exceptions to separate header file.

Moved to enable them to be included in pridil.h for handling by main(),
without having to also include all the other types defined in
pridil_common_types.h in the user's pridil namespace.
Add exception handling for creation of World instance.
Add exception handling to constructor.