Preston and Wyre Railway, Harbour and Dock Act 1844