GET and POST optimization

Used yii's request object to reduce the number of lines in a lot of the
controllers by a small amount.