Added changes to make app run via webrick