Fixed memoryleak + refactoring profile

Now the profile_picture string is only converted to a bitmap when it
changes.
Converted image is stored in the user object.
Refactored profile activity and moved some logic to the user class