Add width/height parameter support for legend image route
- Add copyresource / moveresource routes
- Test suite updates:
   - Move rest_testsuite.js content inline into index.php
   - Fix POST request parameters being scrambled causing test failures on any POST request with an object payload to api_test
   - Add tests for copyresource and moveresource routes
   - Re-enable some disabled tests