Added some basic barcode scanning stuff and isCordova methods.