Split Servo build into library

In pursuit of #441

r? @larsbergstrom