Copied rest starter codes from 'mungo-rest' project