moving jsonp/js request related reply logic in one place. Keeping things DRY
getting rid of camel case and replacing it by lower case with underscores. Adding spaces afer beginning and before ending round brackets. renaming setsize() to ComputeAndSetSize()
switching switch with if
StockReply is now a single function that takes optional parameters like format and filename. Added gpx as one of the output formats. Moved all content_type and file_extension strings to the header file.
Merge branch 'CORS-support' into encoded_comma-and-CORS