New feature management dashboard.
This essentially adds the possibility to show stat charts in the dashboard.

Squashed commit of the following:

commit 5f0321a0aedcd1d18dfc728ab482f8b889a525e7
Merge: 2297d7b 552e7ed
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Thu Oct 17 11:03:28 2013 +0200

    Merge branch 'feature-graphswidgetforstatistics-mab-master' of git.otrs.com:otrs/otrs into feature-graphswidgetforstatistics-mab-master

commit 2297d7bb19b1b01d2307d4f7cf2ec25df79e171a
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Thu Oct 17 10:56:50 2013 +0200

    Fixed a bug where the graph would have the wrong size after changing and saving the widget settings.

commit 552e7edfa173b9a3180f674a4fe7a6b6ad0762e5
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Oct 17 10:25:29 2013 +0200

    Improved Y axis formatting and parsing stability.

commit d61fa605ae75b2d8e4cf7be9b8730c57943a35b4
Merge: 7b19a8b 0c1490d
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Oct 17 09:55:26 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 7b19a8b6dc4226a35021f9b14e296214ac9bfc9a
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Oct 17 09:55:05 2013 +0200

    Added cronjob to generate dashboard stats every hour.

commit 239d288b211baa6373d1a47142ca8fef6386e04c
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 15 15:52:23 2013 +0200

    Fixed dashboard support selection for new stats.

commit 8b42a6d4730264d2abc46efd747e78f287320ee0
Merge: aa725e0 4c2409a
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 15 14:05:57 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit aa725e03234cc3df5d6b5597fa2641c0a82954e4
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 15 14:04:40 2013 +0200

    Enable chart controls.

commit 3a17c29be241bbab191c51fda38cf90719d6e38e
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 15 11:11:13 2013 +0200

    don't let nv/d3 exceptions block the rest of OTRS JavaScript

commit 2f9322e755d8eadb92c7fc5cc22bb55db83e296e
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 15 10:13:32 2013 +0200

    Fixed jslint errors.

commit 89c2b180a3490343141f814ebd5bfe011e4c1de6
Merge: 0dc4760 e54127d
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Mon Oct 14 19:51:20 2013 -0500

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 0dc47601bdff462897a372499f3a99601ad9128a
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Fri Oct 11 08:42:49 2013 -0500

    Added small visual improvements.

    -Thanks to Nils Leideck.
    -Tidied file.

commit ca5e9893099dd3a468429dae02df9c82f33acbd9
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Wed Oct 9 18:08:11 2013 -0500

    Fixed error that prevents the show of X Axis conditions if no Values Series are defined and no Restrictions

    -Tidied file.

commit 3276c70749cd1486ecbfa00dbac3c24da3af1f39
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Mon Oct 7 23:07:06 2013 -0500

    Fixed wrong scales in Y axis.

commit d49d905311a19e4d5c271abf8365e2fcb898f156
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Mon Oct 7 20:45:01 2013 -0500

    Fixed uninitialized variables and division by 0.

    -If the statistic contains dates and it is not configured %Time hash is not correctly filled.
    proposed patch sets %Time hash fallback values.

commit 3803c72564697f45d7d63c62e8b53fd46f7237b9
Author: Carlos Rodriguez <carlos.rodriguez@otrs.com>
Date:   Mon Oct 7 20:14:16 2013 -0500

    Fixed wrong SelectedValues format while saving preferences from the widget.

commit 95fa2974c3c1d946a3fa31cf328d865b3a03cec5
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Wed Oct 2 15:00:14 2013 +0200

    Make sure no gear button is being displayed on stats widgets if not settings are available.

commit d3ee4a1c4ac6d51bb624032402a71d78c6605b7d
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Wed Oct 2 14:50:16 2013 +0200

    Added explanation for dashboard widget settings.

commit 8b13b761a30cdbf3abc7309be9615950a9e882ab
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Wed Oct 2 14:04:21 2013 +0200

    Comment.

commit bb553a1a14c86517e5be4970ed89e3b6977f670e
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Wed Oct 2 14:00:26 2013 +0200

    Disabled stats widget in IE8.

commit ec05ddae4aa32b67583b919f7e4937de99c464f5
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Wed Oct 2 11:52:26 2013 +0200

    Fixed syntax error.

commit ebd128ff0d31065575a611cd1cdf3d49aad5e401
Merge: 50914c4 bf7be2c
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Wed Oct 2 11:44:47 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 50914c40657e9b6946ab136a7abfd29c9674170d
Merge: 8681727 da54b13
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 1 15:54:26 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 86817278c4c81a90ec1005ba8351cf45ac96917f
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 1 13:48:39 2013 +0200

    Small improvements.

commit 91e4b19c7e49c08b57194a5215b6e8459157fac9
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 1 12:05:50 2013 +0200

    Reactivated time period checks.

commit cbfed18f7f9cd7353fc32ae3e48cde1c5c927588
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 1 10:56:23 2013 +0200

    Fixed JavaScript handling in AJAX case.

commit abdd4d7a835122b8c90cfca5c13a248bd65befae
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Tue Oct 1 10:53:46 2013 +0200

    Removed absolute time settings.

commit 59c7dd77dbd17d53e2a58ad704d0f5c154793249
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Oct 1 09:24:20 2013 +0200

    Improved stat cache calculation

commit a7e1aee29fb49d86712e9a21f3b9264149daf015
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 30 14:43:33 2013 +0200

    Save stats settings.

commit 23d230685a964f4a49b2615a86be9adef0a0a775
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Mon Sep 30 14:42:32 2013 +0200

    Improved stats calculation.

commit c782e2281524f929b109b19a2e12b80d195b0fb4
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 30 13:47:15 2013 +0200

    Added JSON settings saving.

commit 15bae73cb42e81bdf852efade1661b26d264ffa1
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Mon Sep 30 11:16:33 2013 +0200

    Tidied.

commit 2da3efe56a0eddc1c1698efcc6717d8303c2fee6
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Mon Sep 30 11:13:04 2013 +0200

    Dashboard widgets can now generate the HTML code of their settings page on their own.

commit aa1e08aa9e3577cba2f26a4ca414f1faf4191ff2
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 30 11:00:22 2013 +0200

    Created include for stats settings code.

commit 1f6e35d0c76164085d03985435ed9e5e6b772b9e
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Fri Sep 27 11:06:10 2013 +0200

    Activate nvd3 production mode.

commit 474a92e77f319df7e42fe144e441db7195a412d2
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 26 16:30:30 2013 +0200

    Improved chart.

commit ea3004213536865710762b6632f2781384266a20
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 26 14:37:17 2013 +0200

    Small fix.

commit e9b92d74a25161465b63ddac3b79a8dab45267c4
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 26 13:00:55 2013 +0200

    Implemented a first basic version of statistics output. WIP.

commit 6d51d5c297a55c0f0797f8e3bbf5acc5086065a6
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 26 10:58:25 2013 +0200

    Refactored cache handling. Avoid modification of data in %Param.

commit da1254eb9189b1e60a43d46f439dc819d7412c9c
Merge: 6da3657 15321d4
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 26 09:59:23 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 6da365730641c5635f8288690e12fd458ff9c411
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 14:39:09 2013 +0200

    Added fetching of users and stat calculation.

commit 4ce432bdb38ff783a80be0985f516eac58fbc3f4
Merge: c197b44 a6f903b
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 12:32:53 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit c197b4479f1fe62b8d2c3ea3d9345a90f9f44b81
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 12:31:58 2013 +0200

    Extended SearchPreferences() to also work without a given value to search for.

commit b92966598a8289c99f1bc1a7a2fccc030199f13a
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 12:22:27 2013 +0200

    Add preferences tests from CustomerUser.t

commit d4374cca8867da1c0219b6e3a6af15fbd5cbda57
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 10:53:16 2013 +0200

    Tidied SQL.

commit 54b94050f7a22268fd505701bcf0966bfcccfbf2
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 24 10:08:01 2013 +0200

    Added script to generate dashboard statistics caches, WIP.

commit acb079555024ba35fb7d832b23169139aa00abcb
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Mon Sep 23 11:33:25 2013 +0200

    Added support for behaviours to the statistics.
    First behaviour is 'ProvidesDashboardWidget'.
    Fixed caching for GetObjectName().

commit 365f45d0e1fecd0be4b3aa4d52ef960d9ef3a052
Merge: c57027b 749bf1d
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Mon Sep 23 10:21:59 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit c57027b45833c5f08771923c99e56ec1fd144e6b
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 19 15:57:48 2013 +0200

    Disable debug code.

commit f9f5b1d1968ace576be1129fa44135d373a0b8b0
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 19 15:57:09 2013 +0200

    Added new caching options. Use CacheObject for caching.

commit 06297ca51334654be0b8078993edbb967931a125
Merge: 0282e7a 045bd86
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Thu Sep 19 14:53:56 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit 0282e7ad649e244a6a6b7267e3e56ba48e491805
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Wed Sep 18 15:42:55 2013 +0200

    Improved library integration.

commit f5005d5ffc2d370e0af6a93455d2061f939cc76a
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Wed Sep 18 15:18:00 2013 +0200

    Removed obsolete registration; improved usability.

commit 654a0b1f27559842116e0c1f89839a7bccd0aaa0
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 15:53:02 2013 +0200

    Show activated statistics in the dashboard.

commit 88add13653d7984089dac930aa164160fc212010
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 15:23:58 2013 +0200

    Added new StatsListGet() function for performance reasons.

commit 74fb34bde47039b551b9d6a7a19d26766691fd61
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 14:33:20 2013 +0200

    Added caching of stats data.

commit 61b716574f1225e52322411c1e2fdfa061b3f831
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 11:29:58 2013 +0200

    Improved accessibility.

commit 0018c0f11fe657992cfd88affdf39051e7aa095f
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 10:59:23 2013 +0200

    The stats admin can now configure if a statistic should be shown in the dashboard.

commit 79b92a4c1e14f216c62d7bc82639512b47ee91b1
Merge: e5fceaf 5afc628
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 10:49:28 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit e5fceaf178a239b9a841eb26163c7bcf527bd1ac
Author: Martin Gruner <martin.gruner@otrs.com>
Date:   Tue Sep 17 09:56:43 2013 +0200

    Added ShowAsDashboardWidget flag to stats.

commit fc50f6fb262554ccff4b6aa0c2f3231d2443a56c
Author: Marc A. Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 16 16:55:32 2013 +0200

    Updated.

commit cb5705c6987ce56a79d4a9e8943957c4d69dc599
Merge: bc0bd98 52c554c
Author: Marc Bonsels <marc.bonsels@otrs.com>
Date:   Tue Sep 10 14:40:06 2013 +0200

    Merge branch 'master' into feature-graphswidgetforstatistics-mab-master

commit bc0bd98bb4e7b0c989f2ef90d3527b4debe15213
Author: Marc Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 9 16:34:21 2013 +0200

    First try.

commit d84a0305882d046b2804a4327333f7115ce87551
Author: Marc Bonsels <marc.bonsels@otrs.com>
Date:   Mon Sep 9 12:41:21 2013 +0200

    Init.