rename mime logic to output logic, add qrencoder, fix javascript
layout for small screens