Reformatted code and improved finalising of data.
Updated Activity detail view for spitted tracks.
Merge commit 'beb0d4fcbc84c8b623c8c2cfcf9afbb6f4e2cffe'