See https://github.com/adrianmacneil/craft-inspector