Some initial work on allowing to toggle the locked state of a file (#256).