moved some controllers to groovy
added IndexControllerSpec and fixed some tests