Added some library functions for platform detection e.g. is_cordova() and is_ios()