Ryan Reynolds to star in and co-write Upstate