Fixed association and attributes merge issue.
Removed a little redundant code that was left over from debugging.
Renamed variable name for consistency.
Renamed method name for clarify; Compacted code for terseness.
Added an unhandled test case that needs to be accounted for.
Added logic to create has_one hash recursively from ruby object and switched from regular merge to deep merge for nested hash.
Used deep_merge for has_many code for consistency.
Use symbol for key.
Added code to support recursive hash creative.
Merge branch 'has_many_update_attributes'