No longer used _CONSTANTS use apiEndpoint instead
fixing typos
moving code around before adding upload file
Implementing file uploads

Both server and client uploads are now implemented, authentication is handled
by the server.