Move some mistaken changes

This alo optimizes IsAdmin() somewhat, and fixes a broken if statement
in Api.PostUpdateNode().