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.
is that an intended change or accidental?