Moved off wsapi logic to library and implemented Symfony bundle logic.