Pr/3098

I've fixed up https://github.com/silverstripe/silverstripe-framework/pull/3098, rebased it, squashed the commits, fixed the test cases, and made a few API suggestions.
It is worth noting that tests will need to be written for these flags though, as they only cover this feature when accessed directly