merged getEnvironment with findEnvironmentVersion

always calling 'ver' with an argument

In MATLAB, the call to `ver` has quite some overhead.
In the ACID test, this amounts to almost 11 seconds, while
writing out the TikZ files takes 13 seconds.

By calling ver with argument, the number of calls to ver
is decimated (no more iterating over calls).
Furthermore, by merging getEnvironment with findEnvironmentVersion,
the number of calls is halved (this amounts to a nearly insignificant gain
compared to the other measure).
However, both functions perform almost the same operation and rely upon exactly
the same intermediate data such that they can/should be merged.
if strcmp(env) -> switch-case-otherwise

strcmpi and strcmp on the environment replaced with switch-cases
to improve readability and robustness.

If another environment should be added, one can search for
the errorUnknownEnvironment and finds all locations where something
env-dependent is going on.
checkDeprecatedEnvironment function added

Removed the functionality from the main method to a specific function.
The minimal accepted versions are still in the main method for clarity.
envVersion stored in m2t struct

This allows to check deprecation at every point, and,
it allows to put the version in the output
Environment in TikZ output

Also show which version of MATLAB/Octave ran matlab2tikz
in the TikZ output. This makes it possible to track environment-related
bugs better.
environment-related function moved to end

All environment/version related functions moved towards
the end of the file and grouped together
Merge pull request #269 from egeerardyn/cleanup-matlab-env

Cleanup MATLAB/Octave environment checks