added/refactored serverlet that offers json api to get nodes information