Bug 907331 - Ability to convert resource usage to a serializable dict; r=ahal

--HG--
extra : rebase_source : b1e7f40e72ae50d1fde04a6935de17740f72c918