Set category on newly created expenses so it's category_id is serialized.

@matthelm for review

When a new expense was created it didn't have a category set on it.  This fixes that so that the category_id gets serialized when an expense is created.