Add a debug REST API to get raw device entities. Fix attachment point blocking code and make it appear in the REST output