Single page app with rails api

OOJS'ed this as much as possible. What's next is styling. 

All the javascript-generated HTML is contained in generateAddressContent and generateStationContent. So fix stuff there and in the CSS file.