Refactoring, initial win32 support

Move codeexport stuff to other package.
More conservative export in __init__.py (make future change of backends easier)