Added basic functionality to receive objects.
Added basic authentication.