datetime handled in view_detail.
identation fixed.
Replaced `[]` with `array()` for php 5.3 compatibility
Merge pull request #58 from artursvonda/retrieve-historic-data-for-entity

Add method to retrieve full history of an entity
identation fixed.
Merge pull request #48 from atsiddiqui/master

datetime handled in view_detail.
Clean up code and update deprecated code.