Fixed bugs in wave form rendering.

- A new technique is now used for rendering the wave form; instead of
having variable line width, we now have fixed line width and average the
values of the history items in bounds of that line. This fixes the weird
gradient-like rendering in high DPI displays.
- Updated iOS project after changes in view definitions.