Moved file transfers into the messages db, fixed transfer, added file receiving