Scrappy Scottish city will be paid to help develop smart technology solutions to urban problems.