Refactored container compiler, generator and added better exceptions.

Added exception classes and replaced general exceptions with specific
exception types with proper messages. Refactored generated container
source code compilation to the the ContainerCompiler class. Refactored
ReferencedAssemblies to the ContainerGen class.