read config from file and compatibility

1. read config from file 
    read username,password,platfrom from curdir/config or ~/.edx-dl/config

2. resolve Python 2/3 compatibility issue (after introducing new features like download from CDN)