Merge pull request #154 from sharoonthomas/develop

Refactor profile API
Fixed issue in serializing permissions
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
Merge pull request #156 from tarunbhardwaj/develop

Fix issue in render_email in nereid
Add serialization for Pagination objects

* Also adds test cases for pagination