Add Performance and memory management to AOSPA 

This is a direct port from the CM10.1 implementation.
Seems to work well enough here.
Change-Id: If42bb3046ca4c9089d7d6a460e187e9e88a747f3