Bug fix: IsWritable() returned true if the stream was readable.
WIP: Adds File IO methods to the File API

Adds new method `open` to File class. This method returns a stream object to a file given as an argument.

Also adds `close`, `read` and `write` methods to the stream object.