Split parser's logic from utils

This is needed for the better code reusage for functional tests.

Partially implements: blueprint image-based-provisioning
Change-Id: Ibd499ff3b0efd0c4c529a6957b9c1d89cd895286
Merge "Split parser's logic from utils"