refactor return http status 201 Created when creating a new node

1. return 201 when creating a new node
2. move dispatch to server.go. I do not think `peer_sever` should know about the logic of command. But finding the leader should be the logic in the `peer_server`. I would like to move `dispatch` back to `peer_server` after we refactor `dispatch` a little bit.