adds handling oauth errors
shortens url for bot session
fixes url
switches to new cobot oauth endpoints