Refactor the crop js component and the view spaces/edit, refs #412

Trying to make the crop js less dependent on the tags used in the application
and more contained (all jquery selectors are searched on a restricted scoped, for
example).

Includes several other small related changes: using more data attributes instead
of tags to pass information to the js, reorganizing locale strings, use less
ids and more classes, and others.