Configuration file support, big fixes and curl support