Adding mock phoneGap api factories to enable browser based testing.