exports and variables are now driven from the api

This means we no longer need to update the map code when new variables
are added or changed