Check for commits without refs

If gnoref is available, use it to check if there are commits without
proper refs and refuse deploy request if so.