added count for devices end point
moved code from display.js to server.js
update readme.md