MOB-1543 AJAX file upload

This pull request is just for a code review reasons. The upload implementation is still something which is being discussed but we don't want it to block current work.