packaging: setup: support lexical parsing of configuration

the configuration file format is shell like format, it should be parsed
by shell, python and java.

current implementation does not parse the value using lexical method, so
escape of characters is impossible, and there may be other side effects
like comments that should remain within quotes.

new implementation uses primitive but sufficient parsing of literals.

sync implementation between java and python and sync implementation of
service parser to match this of setup.

Change-Id: I945c8ddbe5de512ab330153c27802bb71964b76f
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>