Switch to updated Jzab implementation and some code refactoring.