Add jobtype model

This is still work in progress, please don't pull yet. Feel free to comment, though.