Make CAS PUT work, XSRF is working, exceptions improvements, add tests, coverage at 56%