REST API support fixes

Added REST API support for slaves, fixed a problem when making REST requests anonymously, and adjusted the visibility settings so at the default depth, you don't get job configuration history (which might cause problems if a history is particularly long).