`$kinvey.User` demonstrates deep reference recognition in saving methods

When saving an object the `$reference` method is used as a marker to detect and flatten nested Resource instances into references. Methods which display this functionality are `$login`, `$signup` and `$save`.

Reference: issue #19.