Revert "move boost::throw_exception implementation in main.cpp"
Keep throw_exception handler in header files so that it always matches compilation options. Move nt2::exception type and handler to separate files.

This reverts commit 7adb1b373ac23d17c646c6ef70aa5041f71adae6.