scaffold for getTitle and changed tabs to 4 spaces

Main changes in the getTitles route (lines 118 - 173). 
A lot of diff noise generated by changes from tabs to spaces.