Allows for multiple trusted domains

Allows for multiple trusted domains.
Fixes Issue #130.