[firefoxos] CB-3208 lots of changes

Tests needed to be changed as FFOS requires a specific construction of "privileged" apps.
All javascript code needs to be placed in separate file.

""" (comment on jira CB-3208)
I needed to modify the tests as well to make it work under FFOS (type privilleged is required which bans inline javascript)
https://github.com/zalun/cordova-mobile-spec
I've been working on automated tests only.
I modified test 20 so it's deleting the gContactObj as 21 is no longer depending on its creation.
21 is now testing returned (from save) fields like addresses, organizations and categories.