iOS: Refactored wave form generation and cache into a new class, WaveFormCacheManager.
This created a few minor bugs but the peak file are generating fine.
The goal is to share the same wave form cache and generating threads between wave form controls.

Related to issue #405.