Detect Forge (which still not supported)

Code Optimisation, Detect Forge server
Changes imported from pull request #35