Removed the get/set_index_format functions.

  These are replaced with calls to get_variable( "index_format").

  This is part of issue #20.
  Added simple helper function for string-variables.

  This simplifies our get/set routines.