fix whitespace.
Try to make hash function not required in the post data - fail.
Fix new rule addition and add test.
Fix usage of request.json.
Fix hashFunction stuff by replicating old behaviour.
Make /users return all user permissions in json format.