Make the build_wrapper.py more generic

"Enumerate" possible commands for the script and do the argument
parsing in dedicated class.

One function should suffice for generic app builds.

Change-Id: I21a1673e3ab0fad65852227dbfc8398e090e7f28
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>