Made permission checking more flexible and robust.
Added git diff patch and compile (core functionality)