Relocate core classes out of __init__.py
Reorganise version import

To allow version to be determined before six is installed.