connections: Listen on NMDevice::state-changed instead of notify::state

We need to be sure that NMDevice's properties are already up to date, as we're
accessing the active_connection from withing the signal handler.

https://bugzilla.redhat.com/show_bug.cgi?id=1149200
connections: Don't give up if we've not seen an active connection yet

It will appear later on.

https://bugzilla.redhat.com/show_bug.cgi?id=1149200
connections: The active connection state might already have progressed

Trigger the signal handler once when we hook it.

https://bugzilla.redhat.com/show_bug.cgi?id=1149200
cli: fix errors and crash for invisible connections

* two users are logged in: user_a and user_b
* user_b creates a connection visible only to him 'user_b_private'
  (permissions: user:user_b)
* user_b activates the connection user_b_private
* user_a does not see the connection profile, but he does see the active
  connection

* user_a calls
  nmcli con
  nmcli con show user_b_private
cli: show details for active connection even if the profile is not visible

$ nmcli con show other_user_con
cli: show active connection even if the connection profile is not visible

$ nmcli con show
cli: get connection ID straight from the active connection

Static connection profile may not be available and using active conection
is easier anyway.
Merge: nmcli fixes for private connections (bgo #738643)

When a user activates a private connection, other users will see the active
connection, but they won't see the backing connection profile.

https://bugzilla.gnome.org/show_bug.cgi?id=738643
cli: fix getting/setting hostname (bgo #738796)

Create a client instance before it's used.

$ nmcli g hostname
(process:13615): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=738796
build: Don't leak generated files into distribution

gdbus-codegen will generate code that will need a too recent version of glib.
contrib/rpm: Don't exclude files that are not built

RPM still insist that they need to exist in order to be excluded.
contrib/rpm: Fix Fedora 19 build

Too old to have recent enough ModemManager.
contrib/rpm: Count all predecessors in revision number

The revision number of the RPM (as build by contrib/rpm) should
be increasing so that newer packages can be installed using
`yum install` and older packages can be downgraded using
`yum downgrade`.
By counting only --first-parent, the following example turns
out wrong. Note the duplicate revision numbers.

  -- A(100)----------------------------F(101)----G(102)
      \                               /
       B(101)----C(102)----D(103)----E(104)

Just count *all* parent commits
build: merge branch 'lkundrak/lr-rpm-build' (bgo#738507)

https://bugzilla.gnome.org/show_bug.cgi?id=738507

Signed-off-by: Thomas Haller <thaller@redhat.com>
core: move NMPlatformSource to nm-types.h

...and rename it while at it. It's going to be useful outside nm-platform,
to weight MTU options from various sources.
core: track origin of MTU

Only override MTU if it came from a source of higher priority or is of equal
priority but of lower value.
rdisc,device: set MTU if an appropriate option is present in a RA

https://bugzilla.gnome.org/show_bug.cgi?id=738104

Reported-by: Charles R. Anderson <cra@wpi.edu>
Merge remote-tracking branches 'lr/lr-unmanaged-slaves', 'lr/lr-ipv6-tokens', 'lr/lr-ap', 'lr/lr-rdisc-mtu', 'lr/lr-rpm-build', 'lr/lr-lxc', 'lr/lr-hostname' and 'lr/lr-bond-activation' into integration