Implemented the rank_gasstn functionality as an API.

Changes to be committed:
	modified:   index.php
	modified:   rank_gas_stn.php