refactor server_collations.php 1. split long function 2. add server_common.lib.php

1. split long function
2. add server_common.lib.php