Dunfermline owner Gavin Masterton has handed over his shares in the club in a move described as 'essential' in securing their future.