fix routing matching order

--HG--
branch : beta
Added --format into gist CLI

- default --pretty format will give a nice message about gist creation
- api_call shouldn't do any printing let the CLI decide about that
- return pure json with --json format

--HG--
branch : beta
lazy load pygments lib so we can use VCS without it installed

--HG--
branch : beta
Use lower level API from mercurial when doing a pull

--HG--
branch : beta
fixes #834 hooks error on remote pulling

--HG--
branch : beta
Fake post-push actions when doing git fetch. It's still want show
what revisions we fetched but at least we trigger the action

--HG--
branch : beta
Explicitly tell fileinput that we use '-' as read source

- minor docs improvements

--HG--
branch : beta
renamed gists routing to proper plural names

--HG--
branch : beta
extra : amend_source : fdfac4bf5997dc702c2d147968a2f246b74a0c05
extra : histedit_source : b7a6eb99709d92a594fe4e458877292db0757e76
Fixed issues with group renames for local repository group admins.

- revoke permission on yourself check was triggered thus preventing
  group update. Moved this check into update permission function

--HG--
branch : beta
Remove translation calls in API

--HG--
branch : beta
fix unreachable code errors

--HG--
branch : beta
use consisten double quote docstring formatting

--HG--
branch : beta
minor css fixes

--HG--
branch : beta
simplified boolean expressions

--HG--
branch : beta
replace equality comparision to None

--HG--
branch : beta
replace list appends with list literals when possible

--HG--
branch : beta
classmethods should have cls as first argument

--HG--
branch : beta
Fix check statements from () which had no effect really

--HG--
branch : beta
fixed duplicated test in diff tests

--HG--
branch : beta
fixed some syntax issues (string formatting) with migration files

--HG--
branch : beta