Setup Whoops to handle error & exception to improve DX

When debug is on, displays Pretty trace in HTML in browser, in Json for Ajax requests and in plain text for CLI