Register components in AutoFac.