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.
/rest/ - is the trailing "/" wanted / needed?