Added apl history file to gitignore
Further fixes to the streams management