Refactored

# Made definitionType definition type. Will be used to move definition
behaviour from enivornment
# Simplified use of getDefinition(s) to that name of definitionType is
passed rather than  actual JS Type. Need to convert to options so
compatible with Web API when built
Refactored

# Simplified definition type methods attaching to environment