Ported the exceptions lib, and fixed more bugs. Also ported some more exapi stuff incidentally.