User auth

A bunch more changes, auth should be close to working, also added some more auth dependent logic for Fence list. Couldn't test due to a lack of a dependency, plus I'm tired. Sorry for leaving you with probably buggy code in the AM tomorrow.