Fix missing content type and perf improvement for add site config.
Merge pull request #335 from amitapl/siteconfigfix

Fix missing content type and perf improvement for add site config.