added locations and location saving

added locations and location saving from old repo
added userprofiles and settings
fixed bugs in UserProfile model