Geometry of locomotion of the generalized Purcell's swimmer: Modelling, controllability and motion primitives. (30th June 2018)