Started implementing profiles.

Added profile manager.