(Lakka) Fix draw_icon in gles2
Merge pull request #1070 from lakkatv/lakka

(Lakka) Fix draw_icon in gles2
add getVendorId and getProductId to android device detection (needs testing)
Change VID/PID passing to autodetect function - now int32_t
values
Split up rarch_main_clear_state into two functions - rarch_main_state_new
and rarch_main_state_free
Move recording and resampler drivers to 'driver' global struct -
moving it outside of g_extern
deinit_msg_queue becomes static function - clean it up in rarch_main_state_free
Refactor rarch_main_state_new - use g_extern.main_is_init
main_clear_state_extern - start manually cleaning up/freeing
pointers in g_extern before doing a memset 0 on it - not
complete yet