Http auth

Added in basic API authentication by adding in manadatory api_key url parameter which needs to be added onto all api queries.