Fix return-value bug in register.
Report exceptions in script context.
Complete OO change.
Test spaces in section names.