Made the test connection button to work.
Also, added synchronous connection possibility & GET method for API