Initial rewrite, most of the features of the existing webdasboard ported