Added code to move old octoprint folder out of the way

Might be left over after an update due to contained .pyc files that then cause the actual application start-up to fail.
Moved filetype decision stuff into gcodefiles module
Properly restart sd prints

Fixes #258
Merge remote-tracking branch 'upstream/devel' into devel

Conflicts:
	src/octoprint/util/__init__.py
	src/octoprint/util/comm.py