Merge pull request #63 from CapnBry/data-loader-opts

Continuation of #57, Long rawdata visualization load times
Fixed correct routing when not running in root path
Making use of some jQuery chaining
Added mysql errormessage on fail
Allows logging in/register with enter button

This change allows form submit when clicking the enter button as normal
in web sites. It also enables the mouse cursor being displayed as a
hand/pointer over the register and cancel link which is standard. Also
makes some use of jQuery chaining.
Remember me fix.

comments in code
Merge pull request #69 from IntoMethod/rememberme-fix

Remember me fix.
Merge pull request #66 from IntoMethod/pullreq

Route bugfix, jQuery optimisations and allows enter button for login
list.js bugfixes and tweaks/minification

When new users registered the account page would list Name, Location,
Bio as "null" when there were missing values.

Also Timezone were displayed as "UTC +null:00" and no default value when
editing (first in list -12:00).

This fix makes the GUI display "N/A" instead of null-values for text,
also makes it an empty string in edit-mode.
The timezone dropdown is now defaulted to UTC +0:00 in both draw and
edit mode if no value exists.

This commit also makes some other tweaks such as utilizing jQuery
methods instead of string concatenation on some places.

A minified list.js is also committed, compressed with yuicompressor
2.4.7 to cut some extra bytes.
Async ajax calls for some visualisations

If the dashboard contains lots of widgets/visualisations they block
eachother (javascript thread blocks) by doing lots of sync calls (page
load with 4-5 widgets could be 2-3sec). This change makes the rawdata
and realtime widget to use async ajax instead with callback which
doesn't block the javascript thread in browser - this makes the
dashboard feel alot snappier and page load is about 0.5sec instead in
comparsion on my test. Also the widgets does not "hang" during zooming
and time range change since the data fetching is not syncronous anymore.
Fixed some html-markup

DOCTYPE should be defined before <html>, also there was missing body
start tag and rawdata.php did not have either doctype, html or body.
Merge pull request #70 from IntoMethod/listjs-fix

list.js bugfixes and tweaks/minification
Merge pull request #71 from IntoMethod/async-vis-api

Async ajax calls for some visualisations
route path setting cleanup

uses core function to extract sub-directory through
$_SERVER['SCRIPT_NAME'] instead.
Merge pull request #73 from IntoMethod/route-settings-cleanup

route path setting cleanup
Fixed dashboard height error + login label

The page_height variable was never changed, the designer.page_height
was, thus when saving a dashboard the designer.scan() => computed page
height was not passed to the save method since it only used the old
value again.

This bug was reported by Paul Reed over at the forums here (illustrated
with a large blue arrow): http://openenergymonitor.org/emon/node/2013

Changed so it uses the designer.page_height variable instead.

This fix also makes the "Remember me" text a label around the checkbox
according to ui/ux web standards the label should be clickable. The
bootstrap default style was used for this. (see
http://twitter.github.io/bootstrap/base-css.html#forms)
Merge pull request #75 from IntoMethod/dashboard-height-fix

Fixed dashboard height error + login label
hopefully last commit for this feature..
Merge pull request #76 from IntoMethod/route-fix-again

The new route fix did not work for everyone
Fixed floatval() and setlocale() issue