Updated server

fixed lots of bugs, added plugin folder.