fbopen: move helper classes into their own file :-)