Added UIEnvelope class + various improvements

Cleaned up the SynthViewController by adding a separate UIEnvelope
class.