Fixed DAO exception handling.

Fixed exception handling on DAO's. An array is now returned with each
exception so that it gets reported in the UI correctly.
Improved exception handing for javascript resonses