Use Constants

1. I changed the type of *_MS in Constants, as they are not large enough to be represented with long type.
2. With the constants defined in Constants.java, I replace the literal somewhere(test case classes excluded).
3. Remove some unused import.

Please check.