added REST API support for tail -f