Add hostname and hostnamef filters

In most cases, the unqualifed hostname is enough to have a unique
identifier. The full hostnames usually repeat some common suffix/port.
This change adds the semantics of the unix "hostname" and "hostname -f"
commands.

Examples:

    url = "http://foo.bar.baz.example.org:5030/metrics"

    {{ url | hostnamef }} // foo.bar.baz.example.org:5030
    {{ url | hostname }}  // foo
Add generic data migrator

In order to be able to migrate the json configurations of dashboards,
this change adds a way to easily get access to the fields. The
implementaion makes it easy to extend the provided helpers in the future
to change other fields or tables as well.

Example usage:

    Migrator.run Migrator::Widget do |widget|
      widget['foo'] = widget['bar']['baz']
    end
Add migration to move global stacked setting

With the introduction of multi-axes support, the stacked option was
moved.
Add additional styles for new ui, and tooltips on widget buttons.
Merge pull request #159 from prometheus/new-style-touchups

Add styling fixes and widget tooltips to new UI.
Merge branch 'master' into per-expression-legends

Conflicts:
	db/schema.rb