add type field to motions_parliamentarians
update script to use new type field
add motion type filter and sorting links in parliamentarians/view
add sorting links in motions/index