How to stop joint separation
This is caused by unequal weights on the edges of the mesh sections. Essentially the bone is 'pulling' on the mesh a different amount on each edge. The two easiest options are to either join the loops (selecting both and pressing W and choosing remove doubles should do the trick) or carefully weight painting the edges to ensure both edges have the same weights.