Added a permission system. Far from finished though.