Added some better error messages for the status/push pages.
Cleaned up the Repository class a bit.