Adds edit purpose for plate only available for lab_managers.
Allows to see the purpose from the view of the plate.
Fixes queries for obtaining relevant purposes.
Changes search by a scope. Changes condition
Merge pull request #876 from emrojo/edit_plate_purpose

Edit plate purpose