added resources for json api responses, moved some of the computations to soft attributes, moved the qrcode generation into the project model