Set the userId in session when importing a dashbrd
CSS fix for the id when connected
Import test on the name instead of user_id

To know if the file contains a dashboard or an array of dashboard,
we tested the field "user_id".
The fact is that we take the user_id of the user in session, so this field
is no longer compulsory in the imported dashboard. Therefore we have to change
the tested field to know the desired information (if the dashboard is
in an array or not)
Fix : no refresh when the refresh rate worth 0
Popup validation when clicking on the delete btn
Add colors on the state and an icon when disabled
Replace the prepareValue in getValue
Little fix of a javascript bug

When the user puts in target "&from=-2d" the javascript function getGoodUnit
returned "secondes" instead of "days"
Don't do a movingAverage when "sample" is worth 1
option "starts at midnight" for a graph (SQL inc)

Add a checkbox in the graph edit panel for this.
If checked, the graph will be drawn with option "from=midnight-[...]"
'&' forgotten in the url zoomed
Define an offset for the alert control

With different ways to record metrics (batch, etc...),
these metrics obviously aren't set in the same second.
Therefore when we have a threshold alert with a complex target,
graphite computes its result with incomplete data
that may lead to a false positive alert.

To prevent this false positive alert, we have defined an offset
(set by default to one minute) that insure graphite to have the whole data
in order to make its calculation.

This commit resolves issue #55
Add subscribe button for alert

A subscribe button has been added to the edit and view page
Add pager before the alert table
Make the name of dashboards clickable
Url encode the "+" for from and until
Upgrade of the zoom

Sometimes, the jquery event "onload" is badly monitored by the browser
and the zoom is disabled.
This upgrade uses the jqueryUi plugin "slider" and so, the zoom is active
immediatly (even if the graphs aren't loaded).