add : to valid xml_name characters; wait for correct input xml entities on start

we now no longer simply wait 10 seconds at the start, but really try to read the correct xml entities:
  <stream:stream...>...

A lot of code is currently duplicated.
move input processing loop into a function (replace 5 occurences with call to function)
Upgrading version to 1.3.0 (remove sleep's with input processing (i.e. wait for STREAM:STREAM instead of simply waiting 10 seconds))
Upgrading version to 1.3.1-dev