less middleware, css refactor

move less middleware out of modules to the libraries so we can easily
extend less