Many template tweaks to get bootstrap working; conditional showing of full page vs snippet for ajax vs normal requests.