make pkg_parser more stable

- decode UTF-8
- convert to ${foo} style of vars before parsing
- workaround packagers trying to assign arrays to strings
add some forcing options
fix some newline parsing issues
sync srcpkg if needed
handle webserver exceptions by own logging system
better handling of build failures