refactor pagelock module to routing
use symfony IP method. cc @cmfcmf
Merge pull request #2009 from craigh/routing-pagelockmodule

refactor pagelock module to routing