Some of publicly available functions. If something not listed there that means
i'm not sure if i'll keep it in current state or keep it public at all for long

# mpr.log(format_string, args)
If cvar mpr_debug_log is On, prints message in console formatted with
string.format. Also writes it to server's mpr_log.txt

# mpr.dumpRecord(record)
Returns string dump of record (with only mpr-relevant fields)

# mpr.addHook(name, func)
Adds mpr-specific hook similar to normal addHook command. Available hook names:

## mpr.addHook("PreMapLoad", function(mapid))
Called before mpr loads and sends current record. Used by io module for
reloading records

## mpr.addHook("RecordLoad", function(record))
Called when record for current map was received. For synch reasons, server also
calls this hook only when it received record via internal send record command

## mpr.addHook("NewRecord", function(record, bestplayers))
Called when it is confirmed that time on map is better than current record.
Since record itself only has players names and skin data, list of player_t is
also passed to avoid unnecessary lookups

# mpr.buildRecord(time, players, encore)
Creates record table from input. This function signature may vary between
versions, as new features may be added

# mpr.buildEmptyRecord()
Creates empty record, with time equal INT32_MAX

# mpr.getRecord(mapid, in_profile)
Returns record for specified map. If profile is nil or not specified, current
profile is used

# mpr.setRecord(mapid, record, in_profile)
Sets record for specified map. If profile is nil or not specified, current
profile is used

# mpr.setProfile(new_profile)
Sets new_profile *for next map*

# mpr.getProfile()
Returns currently active profile

# mpr.getDefaultProfile()
Returns default profile (it is string "default", normally)

# mpr.setActive(new_active)
Sets mpr to be active or not for this race. Has no effect if cvar mpr_active is
Off

# mpr.isActive()
Returns if mpr is currently active or not

# mpr.io.saveRecords(fn)
Saves records into file fn, or multiplayer_records.txt by default

# mpr.io.loadRecords(fn)
Loads records from file fn, or multiplayer_records.txt by default