Some cleanup

Getting rid of hash functions to simplify/rework them. Getting way too complicated and redundant. Also getting rid of the session check stuff for now.