Could just be bad contacts that makes the lights go on and off. Sounds like it especially if it only comes on when you push on the door (causing them to lose contact and close the switch that turns on the light)
For the rattling, there are actually lots of threads on that...there's a way to turn the rubber stoppers so that they stick out more and put more pressure onto the hatch