Listen for AuthenticationException

Convert AuthenticationException to AccessDeniedHttpException

Issue #411
Update docs to explain the 401 status code
Add space between elseif and parentheses
Forced @Target("METHOD") to method annotations.
Merge pull request #415 from Dewos/master

Forced @Target("METHOD") to method annotations.
Merge pull request #411 from RLovelett/dev-411

Handle AuthenticationException
added some more missing annotation scope checks
adjust kernel.controller listener priority

change it to -10 to match the change to sensio/framework-extra-bundle
test dev-master
Merge pull request #421 from FriendsOfSymfony/dev-master

test dev-master
optional format for routes
code refactoring
added configuration parameter
include_format parameter for RestActionReader
other way to generate pattern with format
default true for include_format
fix phpdoc and delete default value of
updated tests
updated documentation
Merge pull request #422 from abdulklarapl/master

optional format for routes