Finished implementation of bmp map parser. Now with support for portals. Closes #337.