Issue 386 Fixed typo
Issue 386 kept remoteentity id out of primary key since it is too big
Issue 386 Added unique indexes on down migration and explicitely dropped then on up (Also Doctrine already does this)
Issues 386 Fixed dropping some indexes on down migration