Move layout preview code out of utils and in its view
Make functions in utils proper ones and out of the parent namespace of underscrore. Closes #459