Planning consent has been obtained to extend an existing Railway Crossing Cottage close to St. Andrews in Fife.