Move rest_api to apis/rest. Fixed issue with upload size wasn't saved to...

... Meta data.

CLI should now work with the bepasty-server with new rest APIs.
minor thing: you killed the trailing linefeed in the file (diff tools like to complain about this, so please fix)