refactored library location
added config
added spree client class
added query by perma link