- Fix various bugs introduced by recent mime type change
- Fix long startup due to recent websocket to AJAX change (ping)