Ref justice: NFL, referees reach deal to end lockout