Abstract dependencies to separate requirements.txt file

Make it easier to install all the dependencies for Wikimetrics
by enabling pip install -r requirements.txt
Also made the test script work on OSX.

Change-Id: I488826379e7e338605b1e02e108ba5b08ed92419