Massively improves performance for the packaging service (converting docs to XML) which is used in republishing the tree.
Minor adjustment related to U4-2560 Working with ContentService can give 2 versions of a document as "newest"
Fixes unit tests
Fixes U4-2587 Regression: Hide Preview Button on nodes that have no template

Now also checks if the template still exists and if it's allowed on that document to determine when to enable the preview button
Merge branch '6.1.4' of github.com:umbraco/Umbraco-CMS into 6.1.4
Initial work on U4-2571 Need to optimize empty recycle bin
Fixes: U4-2589 Save and Publish is not creating version of document and adds a few unit tests
removes the vs profiling files from the sln.
another sln update
U4-2596: UmbracoControllerFactory method ReleaseController should be virtual
Fixes up logic for creating new versions (U4-2589 Save and Publish is not creating version of document)
Merge branch '6.1.4' of https://github.com/umbraco/Umbraco-CMS into 6.1.4
Last bits to implement U4-2571 Need to optimize empty recycle bin
Ensures the deletions are wrapped in a transaction - for performance and to mitigate db corruption if one of the deletes fails.
Updates the PetaPocoRepositoryBase to ensure that the deletion process is wrapped in a transaction so if any of the processes fail, it all gets rolled back.
reverts PersistDeletedItem transaction because i forgot that the Commit() method of the UOW already takes care of the transaction.
Correcting DELETE FROM query so it works with sql ce as well.
Final piece to the puzzle for U4-2571 Need to optimize empty recycle bin. Needed to hack around the ordering of items in the recycle bin because of the self-referencing constraint - parentID to id in the umbracoNode table by updating all parentID entries, which bypasses any reference issues with the foreignkey.
Merge pull request #73 from florisrobbemont/6.1.3

U4-2596: UmbracoControllerFactory method ReleaseController should be virtual
Updates query to limit results in subquery for MySql according to U4-2329 Browsing Media Slow in 6.1.1