The authorities of any municipality in which there is situated and located in whole or in part a port of entry through which commodities are imported or exported are hereby given authority to issue bonds or other obligations to construct all needful improvement or improvements in harbors within their corporate limits, and including the deepening of any part of said harbor or extending, enlarging and adding to the same by dredging of any part of said harbor or extending inland, to acquire, construct, repair and improve public wharves and docks of said municipality in connection with said harbor; to own, construct, lease and maintain sheds, warehouses, elevators, compresses and other works of public improvement, including roadways or rail trackage necessary or useful for such port, harbor and/or docks and wharf purposes.