Add new loading animation, add error handlers

- Frontend JS gets error handlers
- New loading animation when processing requests to backend