move tree stuff into module trees

Signed-off-by: Mattias Andrée <maandree@operamail.com>