Huge refactoring, not completely finished. Added XCode 5 plugin.