Serialization fixup round one. I still have lots of work before everything serializes properly...

Also fixing the InternalFactory class so it wraps exceptions properly. This is a change in behaviour from 1.0 - now custom exceptions always get wrapped. This makes it so the only exception users need to catch is a ProvisionException.

git-svn-id: d779f126-a31b-0410-b53b-1d3aecad763e
12 files changed