refactor return http status 201 Created when creating a new node
refactor move http status logic to server.go
Merge pull request #256 from xiangli-cmu/0.2-refactor-status-code

refactor return http status 201 Created when creating a new node