Split Page code out of script_task.rs #2530
auto merge of #2585 : ebalint/servo/2530, r=jdm