fix (datepicker) popup displays off the bottom screen

added window boundary detection to the $position service that returns
booleans for the boundaries that have been violated. Currently only
validates the bottom boundary.