add server module
move server methods to server module
simplify execute and put it into main module
add database POST _all_docs