fixed NPE
servlets should not have fields
fix #78

added peer_key in many places that had only peer_address. now peer_key
is resolved to peer_address only on command execution, so data will not
be old in case of peer restart and port change.
also changed error handling for api commands that has redirect to return
nice page (because the browser expected redirect).