An attempt at a simple generic key/value parser