creates relationship between posts and users
adds views and actions for Posts controller