Version Control Work

Wrapped version function in a class for easier, more controlled access.
Created database function to fetch selected value of Version array.
Updated template index.php to make use of these features.
@AlexVonD