More FS open modes, fixing fs mode "r" and the HTTP reading code.

FS mode write was redone to use file objects.
FS append mode added.
FS binary modes added.
lines now removes last entry if it is an empty string.
Other things.