separate the listener into a library
add new conosole project for easier testing; move listener sources