Upgraded to released versions of Nazgul Tools and Nazgul Core.
Added test cases.
Made factory-api compilable.