Added initial functions for get_stats

get_teststats returns random data, ready for d3

get_stats returns real data -- we ask the graphite server and parse data
accordingly to fit d3.

we should remove both functions from mist.core
fix dependencies for graphite
add graphite on buildout
Fix dependency/handle null responses from graphite
implement delete machine monitor & add error handling
Merge branch 'master' of unweb.me:mist.monitor
rename conf, misc improvements
dont overwrite collectd.conf
Adding mongodb backend.

WARNING: the return vector is different that the other get_stats functions. You have to use a custom way to display these values
Fixing previous commit.

* import pymongo
* interval
fixing previous fix ;-)
Add logic to get_mongostats.

use GET params to query for:
- expression (ask for cpu, memory, load, disk) on a comma separated list.
- start/stop (timestamps in epoch format, milliseconds)
- step in milliseconds
Fixing previous commit.

account for empty expression string. Return all targets (cpu, memory, load, disk) by default
Added initial CPU data handling

Bound with mist.io commit 86a8739803a

XXX: there's a tricky float division error we have to track down. Maybe this is due to the way we subtract in order to calucate the correct cpu utilization
Merge branch 'master' of unweb.me:mist.monitor
Pad return array with zeros to match the relevant JS query
Fixing previous commit
Move configuration to seperate file
Calculate correct CPU utilization.

We use numpy/scipy to calculate the CPU utilization correctly when D3 asks a lower number of data than mongodb returns.
Get load stats from mongo, initial take