Add main method, unit tests, reorganize

Add a main method. Add Unit Tests for config class. Create ServiceLevel
pack for config.java and DBAccess.java.