Add the ability to accept base64 in the /api/upload method, and modified the index.html to use a POST request to /api/upload so base64 can be used