Implement getting a single device from a user.

Added a GetDevice function to retrieve devices from the DB, delete the
user attribute just as GetUserDevices does, since they require the same
username to get the items it's not needed.