console: refactored drawing code

the drawing method now isn't a member of Buf anymore
added util/fds.h, which contains a file descriptor wrapper class