Rewrite get_recent.py

Now supports proper argument parsing, specifying input file,
exceptions handling and more.
Initial support for JSON dumping
Add get_routes_list function in mgtparser.common module