Rename View functions to match conventions. Also tidy up view classes and remove C style casts. Closes #656