Added new configuration system (cfg)

This new system is intended to replace the current save and configuration
systems with a more robust and dynamic structure.
Added gettoken() function

A simple helper similar to getline() which returns tokens.
Added JSON export method to cfg
Added JSON import method to cfg
Added new save functions based on cfg
Added new load functions based on cfg
Switched save/load system to cfg