refactor entities into library, update to symfony 2.6@dev, remove trailing spaces