Fix up json returns. Start testing authentication.