Introduce phpspec, add some interfaces