Refactor settings and judge core

1. Use database to configuration settings, and refactor global.java.
2. Move `pyloncore` to `/usr/local/bin` and get rid of `config.ini`