Mathematical foundations of neural systems: towards a unified description of structure, dynamics and computation