Refactored the models to work better with Redbeans. Added a tag model that isn't yet used.