implement more map functions

Signed-off-by: Mattias Andrée <maandree@operamail.com>
whoops

Signed-off-by: Mattias Andrée <maandree@operamail.com>
free the maps

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add the map variables

Signed-off-by: Mattias Andrée <maandree@operamail.com>