Don't make membership always override the BUILD flag anymore.
Add legacy method of reading state flags.
Fix checkstyle issues.
Fix Maven accessing dead repositories.