Enable detection of survey type (JMP or GLASS)

Split handling both survey types in separate directive and automatic
detection on client based on question types
All imported JMP question also concern total part