Adding code to interact with backend

Does not support user accounts yet.