added REST interface for Tools, still buggy