Add iOS library project

- Added iOS library project.
- Removed userprefs.
- Updated .gitignore for userprefs.