Use return instead of echo seems to fix problems
Add token to session and redirect back to new notes page
Better checking of array keys
Should return a sane error message
Route get requests as well
Return message if can't get auth endpoint
add http to schemeless URLs
Use letter t for notes, as per whistle design
Use correct array key