Cleaned up the pivotal tile class

URL creation has been improved, actions have been stored in the class so that they are displayed more dynamically in the erb file