Lots of bugs corrected, both on front and backend (REST API error handling was buggy due to misuse of JS asynchronism