Handle Connection Errors in Developers App Keys Page (bug 926630)

- Move the external call from the template to the view
- If a connection to solitude fails or raises non 200 catch the exception
- Log the problem
- Display a message to the user
- Added an appropriate test