initial fork, removed obviously redundant stuff, fixed couple of restful-api and password problems