Pass in trust manager delegate to constructor.

This allows configurable behavior for checking certificates, before the fallback to the memorizing trust manager.
Also fix activity launch so that it works well with a Service in a separate process.
Merge pull request #5 from devrandom/delegate

This is a re-do of the merge, as the last one seems to have fallen
victim to layer 8 errors.