Reorganized User and Post data structures and related functions.