abstracted native interface

Abstracted the native interface bit to simplify the communication with android / iOS / test environment / whatever else comes along