Add serialize function to Module model
Add endpoint to add modules to a dashboard