Initial commit of refactor.
#865: Use MagickMock class in the FAQ's exemplary code for mocking modules with C-libs.