What actually is Tony?

Seen the movie once and read the book a handful of times and I still don't have a good grasp on Tony at all, besides the whole 'Danny's imaginary friend' part. Was it ever explained and I just missed it?