Added support for leavetypes and fixed issues with encoding of PDF uploads for payslip files. Also got form processing working.