Switch to mina, move more config out of gem
Miscellaneous bugfixes, mina templates