Move to a less blocking method for calling APIs

Could still be better, but for now, move the longest blocking calls into separate processes.
only add js to chat view
Make links clickable