Merge pull request #1160 from jeapostrophe/master

Fixing NS to CF bridging crash
(OSX) platform.m - Get rid of old code
(OSX) Create wrapper function around NSSearchPathForDirectoriesInDomains
and create surrogate enums
Add CFExtensions.m/CFExtensions.h - will need to build fix this now
Fix linking in OSX solution
(iOS) Take out 'Close Content'
Refactor buttons variable in udev joypad driver
(Linuxraw joypad) Update linuxraw joypad driver
Update to connect_ps3.c
(OSX) Start cutting down on apple_run_core
(iOS) Add TODO notes
(OSX) coreWasChosen - Implement some stubs
Reimplement RARCH_CMD_QUIT
(OSX) Don't directly manipulate g_extern.system.shutdown - go through
rarch_main_command calls
Make apply_deferred_settings more robust when it's being called
when exiting
Add early return to menu_environment_get in case wrap_args
is NULL
(PS3) (GCM GL) Use calloc when we need to memset directly after
Implement call to populate_entries at the end of menu_entries_parse_list
(menu_action.c) Cut down on code duplication
(menu_action.c) menu_action_handle_setting - cut down on code duplication