Added behavior for empty post collection on thread initialization
Created spec for thread controller
Added missing headers to files