Merge pull request #1 from Multi-Axis/ilkka

Ilkka
Updated documentation on habbix, database (data), prediction framework and linreg
trend forecasting and minor changes to back-end
gofmt zab2.go

refactoring zab2.go
refactor dashboardHandler
Update PredictionFramework.md

Document the new `last` parameter in Event.
Delete obsolate DatabaseAndPredictions.md

This doc is split and updated in DatabaseAndData.md and PredictionFramework.md
add getItemFutureIdByHostMetric to zab2.go
fix dashboard normal <-> issue host mapping
split url and 404 return if fail url
refactored dashboard html with templates and added back-end support for it
refactor (and format) zab2.go
zab2: partially fixed dashboard code
wrap getJSON in  to prevent premature drawAndSetData call
fixed getItemFutureIdByHostMetric and updateFuture

getItemFutureIdByHostMetric query was ~wrong, though it only manifests its wrongness when run from go; hosts.hostid = items.hostid was important

updateFuture is now up to date with new habbix sync cmd
css styling, post/get fix for graph.js and template fix for memory tmpl
getItem errors if ifid < 0
Fixed itemHandler for *uint values
rename dashboard to /dashboard

Workaround for handlers running twice
replaced old and bad links with working ones