Fix app.sh quotations, and extend loop timeout to 5 minutes to update, t...

...o prevent queue overflow

note: this is a hotfix for the queue listener overflow, we need to implement websockets so we don't poll the server as a longterm fix