Update storage.inc.php

Modification to solve issue #283
Merge pull request #284 from fameal/master

Update storage.inc.php
Initial API release
More updates to api
Moved to use X-Auth-Token header for auth and new url format for later use
Updated url in comments to match new format
Added list devices api call
Added add_device api call
Added documentation and a function to tidy up json output
Added Slim exclusion to .scrutinizer.yml
Fixed some scrutinizer issues