FELIX-4070 calculate state from flags

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1486756 13f79535-47bb-0310-9956-ffa450edef68
FELIX-4070 remove State classes

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1486757 13f79535-47bb-0310-9956-ffa450edef68
FELIX-3651 escape some characters in bundle location to make valid filters more likely

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1486758 13f79535-47bb-0310-9956-ffa450edef68