DISLOCATIONS AT THE CONTINUUM SCALE: FUNCTIONAL SETTING AND VARIATIONAL PROPERTIES