Fix thin template and some logic in order to be able to deploy a project with the 'Thin' server