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.
rather add your (c) line than replacing the original author's (c) with yours