Add subs find_attribute_value, update_attribute_value, find_or_create_attribute and logic improvements.
Add tests for new User subs.