Fix recipe_file dump() to something else than stdout

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
Add parser unittests

Signed-off-by: Esben Haabendal <esben@haabendal.dk>