make sure height profile canvas fills parent div in trail detail view
Include model functions as attributes in serialized obj. fix #5