Use common packages between edxlocal and edxapp.

@feanil @singingwolfboy @clytwynec 

As per discussion for getting libjpeg onto jenkins_workers with some refactoring. 

To be tested once you give it a look.