Added missing '}' to post controller
Fixed closing header tag in index view
Variable-ized the index view
Created protected function query in model

Helps so we don't have to worry about binding & etc. in each individual
model function