Put all code in one file and structures change.

Make coping with dependencies between parts of filesystem easier and
simplify some structures. Get rid off filesystem structure, it was
senseless.