Using rest API instead of socket.io

Done with socket.io experiment...  :P