Fixed rearranging editor tabs with drag and drop (helps #89).
Reorganized code to allow references to wxver from default style generation.