JBIDE-15365 Aerogear: Implementing set of useful utility methods for both Aerogear and CordovaSim.