Moved Manifest Consumer Rules into Java

Merged master into the rules branch which required realigning the new manifest consumer criteria criteria rules with the new rules strategy (moving criteria rules to pure Java and out of Javascript).