Added Preferences dialog
Simple mode
Add defaults into Tooltips from #885
Fix for Replicator 1 not finishing builds.

If the progress reaches 100% before last layer, the firmware erroneously stops reading the file.
Remove useless lines
Fix brim and extra perimeters after recent changes to ->slices
Adjust extra perimeters
Bugfix: manifoldness error triggered with multi-volume AMF files. #1019
Bugfix: minimum flow for low layer heights was still too low
Better logic for extra perimeters
Some cleanup for detect_surfaces_type()
Fixed regression in is_printable() - needs unit test
Bugfix: internal bridge surfaces were incorrectly merged with other internal solid surfaces, causing suboptimal results
Remove debug line slipped into last commit
Refactor bridge flow to Slic3r::Flow::Bridge class
Rename $layer to $layerm in Slic3r::Fill too for consistency
Use nearest-neighbor search for internal perimeters too. #1025
Load threads::shared before Wx. #1018
Code for memory usage statistics
Merge pull request #984 from giseburt/origin_master

Fix for Replicator 1 not finishing builds.