Fixed some timeout issues (hopefully).
Moved apikey loading to a proper method.
fix lineending stupid.