Added vmflib requirement
Now uses vmflib to create the vmf data

Also fixed a mistake in the tile merging algorithm, the results are now
much better.