Persistence exception handling and fixed some PUT and POST regression

Closes #199 
Closes #196