mongo: move MongoInfo type

This PR moves the `MongoInfo` type from the `environmentserver/authentication` package to the `mongo` package.

This change is necessary to unblock a larger change which was hitting a circular dependency.

With that said, as this change consists of _removing_ the import of the `environmentserver/authentication` from most packages (and renaming the type), it seems clear in hindsight that the `MongoInfo` type belongs in the `mongo` package.
Also, MongoInfo embeds a mongo.Info, so renaming the outer type doesn't
solve the problem of `mongo.MongoInfo.Info`. O-O


On Mon, Sep 1, 2014 at 6:29 PM, David Cheney <david.cheney@canonical.com>
wrote:

> SGTM. But not just yet, we can repaint the bike shed once I've finished
> moving things around.
>
>
> On Mon, Sep 1, 2014 at 6:11 PM, Tim Penhey <notifications@github.com>
> wrote:
>
>> In environmentserver/authentication/authentication.go:
>>
>> > @@ -14,20 +14,6 @@ import (
>> >  	apiprovisioner "github.com/juju/juju/state/api/provisioner"
>> >  )
>> >
>> > -// MongoInfo encapsulates information about cluster of
>> > -// servers holding juju state and can be used to make a
>> > -// connection to that cluster.
>> > -type MongoInfo struct {
>>
>> I'm wondering if you'd consider renaming the struct from MongoInfo to
>> ConnectionInfo, so the other sites that use it will have
>> mongo.ConnectionInfo. Thoughts?
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/juju/juju/pull/647/files#r16944216>.
>>
>
>