Merge pull request #155 from tarunbhardwaj/develop

Fixed issue in serializing permissions
Fix issue in render_email in nereid

* Fixed issue in render_email.
* Added test for the same