Added a ref from character to user, and added code to filter characters by user. This fixes #31.