Merge pull request #524 from akash/master

Akash - #1717 - fixing permissions for export to cpims
Update CPIMS gem to latest version
Akash - 1821 - ensuring log entries are displayed in order