Use load_only to speed up Node checking

Also use a try/except block around a NoResultFound exception instead of
calling count(), since that's slow on PostgreSQL
Use load_only() in NodeController.__init__()