add requirements.txt
201 is a valid response (issue #21)
fix refreshing tokens