js: more testing
- Tests: initialization of the two modes, encryption
- gpgme.js: reintroduced message check before calling Connection.post()
- gpgmejs_openpgp.js: Fixed openpgp mode not passing keys
- index.js: fixed some confusion in parseconfig()
- Inserted some TODO stubs for missing error handling