First bulk porting of the settings

Includes some stuff such as sync settings and Analytics that @frapontillo will use to hook up his code to.