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

Pass in trust manager delegate to constructor.