Moved $endpoint and $token to a config file

Signed-off-by: Adam Engebretson <adam@enge.me>