Cleanup the repository based and fix up warnings

Based on https://github.com/martinpaljak/M2Crypto