Use `json` responses for BitBucket resource owner
Merge pull request #399 from stloyd/bugfix/bitbucket

Use `json` responses for BitBucket resource owner
Hotfix: Make it work without FOSUserBundle
Fixed redirectUrl handling

in OAuthUtils#getAuthorizationUrl
Prepare release `0.2.9`
Merge branch '0.2'

Conflicts:
	CHANGELOG.md
	Security/OAuthUtils.php
Update the token after successful connection.
Merge pull request #402 from stloyd/bugfix/update_token

Update the token after successful connection.
Some cleanup of code:
- type-hint objects when possible,
- don't use container parameter in constructor
- reduce usage of container
- remove some code duplication
- made configuration a bit more readable
Refactor code to use Symfony OptionResolver component
Fix problem with twig extension after refactoring, cleanup after review
Merge pull request #354 from stloyd/feature/revision

Refactoring.

Some important changes:
- refactor code to use Symfony OptionsResolver component,
- type-hint objects when possible,
- don't use container parameter in constructor,
- reduce usage of container,
- remove some code duplication,
- made configuration a bit more readable
While connecting user update his token only if it's OAuthToken instance

Fix #405.
Prepare release `0.3.0`

Changelog:
* [BC break] `AccountConnectorInterface::connect()` method now requires the first
  parameter to be instance of `Symfony\Component\Security\Core\User\UserInterface`
* [BC break] `ConnectController::authenticateUser()` method now requires the first
  parameter to be instance of `Symfony\Component\HttpFoundation\Request`
* [BC break] Removed `AbstractResourceOwner::addOptions()` method
* [BC break] `OAuthUtils::getAuthorizationUrl()` & `OAuthUtils::getLoginUrl()` methods
  now expect first parameter to be instance of `Symfony\Component\HttpFoundation\Request`
* [BC break] LinkedIn resource owner now uses OAuth2 approach, visit official
  web page for details how to migrate: https://developer.linkedin.com/documents/authentication#migration
* [BC break] Dropbox resource owner now uses OAuth2 approach
* Added ability to merge response parts into single path
* Added Bitly resource owner
* Added Box resource owner
* Added Dailymotion resource owner
* Added DeviantArt resource owner
* Added Eventbrite resource owner
* Added Mail.ru resource owner
* Added Sina Weibo resource owner
* Added QQ.com resource owner
* Added Trello resource owner
* Added Wordpress resource owner