Implement list_vars, get_vars and get_var

It seems to be working.  The method get_vars correctly interprets
multiline variables.