You may want to look into the many cheap hotels ($50-70) around EWR that have shuttle service. Save yourself a sore back and grogginess of 8 hours.
Is it possible/advisable to go through security check once in the evening, then come out of airport, and then again go for security check early morning ? I want to see my mother off when her flight departs in the evening at the gate past-security.