Move aliases to separate aliases file; add function for getting parent sha