Sorry about all the commits. I started by adding the portfolio entry edit functionality and then made various other small improvements / bug fixes to other areas. Still got some issues to sort out but I'll open a new branch for that after this is merged, might post a question about one thing in particular that I've been stuck on.