remove index and move proxy from lib to root
specify proxy as main in package.json
add support for secure proxy