Packaging improvements
Test case refactoring
Various sphinx related fixes