refactoring http accept header for Sinatra 1.4.2+
adding Sinatra::Request.accept? method for pre-1.3.0
fixes #2387 - Add shell provider to the BMC API
- Only Accepts on/off/status/cycle for power commands
- Needs sudo for the proxy to call /sbin/shutdown
- Adds a simple test for calling the shutdown api