misc updates, should fix #7

1. update to new github url
2. refine token/set_token usage.
3. fix a bug in _assert_error function
4. fix uid None bug
add image upload support, should fix #5