move server cli code to cli package, add generation of bepasty-object cli script, update docs

also added some (c) headers and docstrings