iOS: Added implementations for memory graphic context. Added code for using the generic WaveFormCacheManager; it actually works fine, but it is a bit slower than the previous version in iOS. For that reason I have renamed the WaveFormCacheManager on iOS to WaveFormCacheManagerLegacy to compare performance between both implementations. The legacy class will be deleted once the generic WaveFormCacheManager works just as well.