Bug fixes and new features

This includes some minor bug fixes and a feature to submit "no page selected" (useful when assignment contains more than one item, e.g. file and mahara page, making possible to submit just one item if user wants to do so). Also, this includes 2.7 events system capability.