Added output profiles, moved profile code to separate class.

Also added some predefined output profiles.