Cleanup of the code & refactored the head system with zstore import/export
Proper test environment support
Fix travis CI command