Update script for data building.
Update script for data building.

Updates:
- build currency fractions and regions data;
- extract some code parts to functions;
- some rearrangements and improvements.

GinoPane/php-open-world