Readded the .get rule for sending the index template on all urls apart from API calls, this fixes a bug introduced by #101