Append port to trusted domain in case it's not 80 or 443

See https://github.com/owncloud/core/pull/10584#issuecomment-54677059 for reference.

@ronnicek Can you please test this change? Thanks.

\cc @MTRichards FYI. 
> So we have to exit() in init or move handleRequest at the end of init. What would you prefer?

honestly?

```php
try {
    $oc = new \OC\Core();
    $oc->handleRequest()
} catch (\Exception $ex) {
    // TODO: respond based on request/client
}