Choose between yaml and json based on filename
Remove twisted from the readme
Add port number to config file
Add some docstrings to api.py