Patterns of molecular evolution and epistasis on a genomic and genic scale