Phonegap with mobility

fixes #46 fixes #52