Big cleanup

-Get rid of a lot of unneeded fragment stuff in the main activity
-Prevent saving of projects if there has been a network error or the query is canceled