Add simple pressure support for brush masks

This lacks many features (like configurability) but it should give some
basic means of playing with pressure sensitive devices like tablets.